<?php
/**
 * Created by PhpStorm.
 * User: zy
 * Date: 2017/12/29
 * Time: 14:46
 */

class Pay_lemengpay_model
{
    protected $name = '乐盟支付';
    var $pay_gateway = "http://lepay88.com/apisubmit";
    public function __construct()
    {

    }
    public function pay($pay_order_id, $params, $settings)
    {
        log_message('info', 'Pay_lemengpay_model.pay' . ' $bill_id ' . json_encode($pay_order_id) . ' $params ' . json_encode($params) . ' $settings ' . json_encode($settings));
        $pay_system_code = $params["pay_system_code"];
        $pay_method = $params['pay_method'];
        $pay_fun = strtolower($pay_system_code . "_" . $pay_method);
        $money = $params["money"];
        switch ($pay_fun) {
            case 'alipay_scan':
                return $this->weixin($pay_order_id, $params, $settings);
            case 'alipay_scan':
                return $this->weixin($pay_order_id, $params, $settings);

                $banktype = $pay_method;
        }
        $result = array("needDown" => 0, "order_no" => $pay_order_id, "amount" => $money,'retcode'=>1,'msg'=>"支付方式[{$pay_fun}]，不存在！");
        return $result;
    }


}